

/* First created by JCasGen Tue Nov 25 01:21:48 GMT 2008 */
package org.idtem.component.wordnet;

import org.apache.uima.jcas.JCas; 
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.jcas.cas.TOP_Type;

import org.apache.uima.jcas.cas.FSArray;
import org.apache.uima.jcas.cas.FSList;
import org.apache.uima.jcas.cas.StringList;
import org.apache.uima.jcas.tcas.Annotation;


/** 
 * Updated by JCasGen Mon Feb 09 21:28:28 GMT 2009
 * XML source: C:/Documents and Settings/Martin Barreto/Desktop/Proyecto de Grado/Repositorio/trunk/Source/worlspace/WordNet/desc/SynonymTypeSystemDescriptor.xml
 * @generated */
public class Synonyms extends Annotation {
  /** @generated
   * @ordered 
   */
  public final static int typeIndexID = JCasRegistry.register(Synonyms.class);
  /** @generated
   * @ordered 
   */
  public final static int type = typeIndexID;
  /** @generated  */
  public              int getTypeIndexID() {return typeIndexID;}
 
  /** Never called.  Disable default constructor
   * @generated */
  protected Synonyms() {}
    
  /** Internal - constructor used by generator 
   * @generated */
  public Synonyms(int addr, TOP_Type type) {
    super(addr, type);
    readObject();
  }
  
  /** @generated */
  public Synonyms(JCas jcas) {
    super(jcas);
    readObject();   
  } 

  /** @generated */  
  public Synonyms(JCas jcas, int begin, int end) {
    super(jcas);
    setBegin(begin);
    setEnd(end);
    readObject();
  }   

  /** <!-- begin-user-doc -->
    * Write your own initialization here
    * <!-- end-user-doc -->
  @generated modifiable */
  private void readObject() {}
     
 
    
  //*--------------*
  //* Feature: synonyms

  /** getter for synonyms - gets 
   * @generated */
  public FSArray getSynonyms() {
    if (Synonyms_Type.featOkTst && ((Synonyms_Type)jcasType).casFeat_synonyms == null)
      jcasType.jcas.throwFeatMissing("synonyms", "org.idtem.component.wordnet.Synonyms");
    return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Synonyms_Type)jcasType).casFeatCode_synonyms)));}
    
  /** setter for synonyms - sets  
   * @generated */
  public void setSynonyms(FSArray v) {
    if (Synonyms_Type.featOkTst && ((Synonyms_Type)jcasType).casFeat_synonyms == null)
      jcasType.jcas.throwFeatMissing("synonyms", "org.idtem.component.wordnet.Synonyms");
    jcasType.ll_cas.ll_setRefValue(addr, ((Synonyms_Type)jcasType).casFeatCode_synonyms, jcasType.ll_cas.ll_getFSRef(v));}    
    
  /** indexed getter for synonyms - gets an indexed value - 
   * @generated */
  public Synonym getSynonyms(int i) {
    if (Synonyms_Type.featOkTst && ((Synonyms_Type)jcasType).casFeat_synonyms == null)
      jcasType.jcas.throwFeatMissing("synonyms", "org.idtem.component.wordnet.Synonyms");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Synonyms_Type)jcasType).casFeatCode_synonyms), i);
    return (Synonym)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Synonyms_Type)jcasType).casFeatCode_synonyms), i)));}

  /** indexed setter for synonyms - sets an indexed value - 
   * @generated */
  public void setSynonyms(int i, Synonym v) { 
    if (Synonyms_Type.featOkTst && ((Synonyms_Type)jcasType).casFeat_synonyms == null)
      jcasType.jcas.throwFeatMissing("synonyms", "org.idtem.component.wordnet.Synonyms");
    jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((Synonyms_Type)jcasType).casFeatCode_synonyms), i);
    jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((Synonyms_Type)jcasType).casFeatCode_synonyms), i, jcasType.ll_cas.ll_getFSRef(v));}
  }

    